Given /^nothing$/ do ; end

When /^I create ([A-Z][a-zA-Z0-9]*) from ([A-Z][a-zA-Z0-9]*)$/ do |cls1, cls2|
  let cls1, Object.const_get(cls2)
end

Then /^([A-Z][a-zA-Z0-9]*) should exist$/ do |cls|
  defined?(cls) == 'constant' && (Object.const_get cls).class == Class
end

Then /^([A-Z][a-zA-Z0-9]*) should extend ([A-Z][a-zA-Z0-9]*)$/ do |cls1, cls2|
  klass1 = Object.const_get(cls1)
  klass2 = Object.const_get(cls2)
  klass1.superclass == klass2
end
